import http from '@/utils/http'
//列表
export const getListApi = async(parm) => {
  return http.get('/api/reader/list', parm)
}
//新增
export const addReaderApi = async(parm) => {
  return http.post('/api/reader', parm)
}
//编辑
export const editReaderApi = async(parm) => {
  return http.put('/api/reader', parm)
}
//删除
export const deleteReaderApi = async(parm) => {
  return await http.delete('/api/reader', parm)
}
//根据学号查询信息
export const getByUserNameApi = async(parm) => {
  return http.get('/api/reader/getByUserName', parm)
}
//读者注册
export const registerApi = async(parm) => {
  return http.post('/api/reader/register', parm)
}
//读者审核
export const examineReaderApi = async(parm) => {
  return http.put('/api/reader/examineReader', parm)
}
//重置密码
export const resetPassWordApi = async(parm) => {
  return http.put('/api/reader/resetPassword', parm)
}
//启用状态
export const updateStatusApi = async(parm) => {
  return http.put('/api/reader/updateStatus', parm)
}
